package com.siberhus.tdfl.processor;

import org.springframework.beans.factory.BeanFactory;

import com.siberhus.tdfl.mapping.BeanWrapLineMapper;

public abstract class BeanWrapDataFileProcessor<T> extends AbstractDataFileProcessor<T>{
	
	private BeanWrapLineMapper<T> lineMapper;
	
	public BeanWrapDataFileProcessor(){
		lineMapper = new BeanWrapLineMapper<T>();
		setLineMapper(lineMapper);
	}
	
	public void setBeanName(String name){
		lineMapper.setPrototypeBeanName(name);
	}
	
	public void setBeanFactory(BeanFactory beanFactory){
		lineMapper.setBeanFactory(beanFactory);
	}
	
	public void setTargetType(Class<T> type){
		lineMapper.setTargetType(type);
	}
	
	public void setStrict(boolean strict){
		lineMapper.setStrict(strict);
	}
	
}
